package cn.edu.bjtu.alex.rewrite.tools;

import java.util.Map.Entry;

import cn.edu.bjtu.alex.rewrite.interfaces.Term;

/**
 * filter words whose length less or equal 1;
 * @author zhangzhidong
 *
 */
public class SingleWordTermFilter extends AbstractFilter {

	@Override
	protected boolean shouldRemove(Entry<String, Term> termEntry) {
		return termEntry.getValue().getWord().length() <= 1;
	}

}
